package com.trg.designmodel.decorator;

/**
 * @ClassName: Drink
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/6 15:50
 * @Version: 1.0
 * @Return:
 **/
public abstract class Drink {
    private String desc;
    private float price = 0.0f;

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //计算费用的，由子类来实现
    public abstract float cost();

}
